package com.cobra;

import com.cobra.service.AService;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class Main {
	public static void main(String[] args) {
		System.out.println("Hello World");
		AnnotationConfigApplicationContext ioc = new AnnotationConfigApplicationContext(AppConfig.class);
		AService aService = ioc.getBean("AService", AService.class);
		aService.test();
		System.out.println(aService);
	}
}
